# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2025/3/15
desc: 
sample: 
"""

#获取files配置路径
import hashlib
import os


def get_md5(data):
    md5 = hashlib.md5()
    md5.update(data.encode('utf-8'))
    return md5.hexdigest()

def get_project_path():
    """得到项目路径"""
    return os.path.dirname(__file__)

def get_files_path(file_name):
    """得到files配置路径"""
    return os.path.join(get_project_path(), 'files',file_name)

if __name__ == '__main__':
    print(get_files_path('case.csv'))